home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Pascal Super Library
/
Pascal Super Library (CW International)(1997).bin
/
LIBRARY
/
PAS_0693
/
SHOWTDRW.PAS
< prev
next >
Wrap
Pascal/Delphi Source File
|
1993-06-30
|
680b
|
27 lines
Program Display_Pix_File;
Uses Dos, Crt;
TYPE
ScrType = Array[0..3999] of Byte;
VAR
f : file;
Buffer : Array[0..3999] Of Byte;
Scrn : ScrType ABSOLUTE $b800:0000; (* Color Screen, non mono *)
BEGIN
Assign(f, ParamStr(1)); (* pass pix file on cmdline *)
Reset(f,1);
BlockRead(f, Buffer, 4000);
Close(f);
Move(Buffer, Scrn, 4000);
ReadKey;
END.
===
There is very little errorchecking.. But that's the basic idea, and it works
nicely I might add.. You could combine the screens in one big picture file as
well, with titles, markers, sizes, etc. to offset each one in the file.. then
just seek to it, and wham..